<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:fn="http://java.sun.com/jsp/jstl/functions">

    <body>

        <ui:composition template="./UserTemplate.xhtml">

            <ui:define name="content">
                  <c:set var="title" value="${UsereventBean.event.eventTitle}"/>
                <p:dataTable var="" value="">
                    <f:facet name="header">
                        Tickets
                    </f:facet>

                    <p:column >
                        <f:facet name="header">
                            <h:outputText value="Event Title" />
                        </f:facet>
                        <h:outputText value="${UsereventBean.event.eventTitle}"/>
                    </p:column>

                    <p:column >
                        <f:facet name="header">
                            <h:outputText value="Category " />
                        </f:facet>
                        <h:outputText value="#{UsereventBean.event.category.categoryName}" />
                    </p:column>

                    <p:column >
                        <f:facet name="header">
                            <h:outputText value="Release Date" />
                        </f:facet>
                        <h:outputText value="#{UsereventBean.event.releaseDate}" >
                            <f:convertDateTime pattern="dd/MM/yyyy"/>
                        </h:outputText>
                    </p:column>

                    <p:column >
                        <f:facet name="header">
                            <h:outputText value="End Date" />
                        </f:facet>
                        <h:outputText value="#{UsereventBean.event.endDate}">
                            <f:convertDateTime pattern="dd/MM/yyyy"/>
                        </h:outputText>
                    </p:column>
                    <p:column >
                        <f:facet name="header">
                            <h:outputText value="Duration" />
                        </f:facet>
                        <h:outputText value="#{UsereventBean.event.duration}" />
                    </p:column>
                    <p:column >
                        <f:facet name="header">
                            <h:outputText value="Date Release" />
                        </f:facet>
                        <h:selectOneMenu id="selectCat" value="#{timeSetBean.date}" >
                            <f:selectItems value="#{timeSetBean.listDateRelease}" var="item" itemLabel="#{item.dateRelease}" itemValue="#{item.tsID}"/>
                        </h:selectOneMenu>

                    </p:column>
                </p:dataTable>
            </ui:define>



        </ui:composition>

    </body>
</html>
